package cn.jobstart.controller;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RestController;
import cn.jobstart.pubInter.exception.SkException;
import cn.jobstart.pubInter.IBaseService;
import cn.jobstart.pubInter.RestfulController;
import cn.jobstart.dto.DouyinMessageDTO;
import cn.jobstart.dto.DouyinMessagePageDTO;
import cn.jobstart.modelExt.DouyinMessageExt;
import cn.jobstart.searchExt.DouyinMessageSearchExt;
import cn.jobstart.service.IDouyinMessageService;
import cn.jobstart.vo.DouyinMessageDetailVO;
import cn.jobstart.vo.DouyinMessageListVO;
import cn.jobstart.vo.DouyinMessageDomainVO;
import cn.jobstart.vo.DouyinMessageDetailDomainVO;
import cn.jobstart.export.DouyinMessageDomainExport;
import cn.jobstart.controller.ApiManageController;
import org.springframework.validation.annotation.Validated;
import java.util.Set;
import java.util.HashSet;
import cn.jobstart.pubInter.exception.BusinessException;

/**
*    @author xy
*    @Date 2024-01-08 10:38:28
*    @description DouyinMessageController      抖音消息(评论管理、私聊管理)
*/
@Api(tags = "后台管理系统-抖音消息(评论管理、私聊管理)相关", description = "抖音消息(评论管理、私聊管理)相关接口")
@RestController(value ="douyinMessageRestfulController")
@RequestMapping("/douyinMessage/")
@Validated
public class DouyinMessageController extends ApiManageController<DouyinMessageDTO,DouyinMessagePageDTO,DouyinMessageExt, DouyinMessageSearchExt,DouyinMessageDomainVO,DouyinMessageDetailDomainVO,DouyinMessageDetailVO,DouyinMessageListVO,String> {

	@Resource(name = "douyinMessageService")
	private IDouyinMessageService douyinMessageService;



	@Override
	public IBaseService<DouyinMessageExt, DouyinMessageSearchExt,String> getBaseService() throws SkException {
		return douyinMessageService;
	}

	@Override
	public String getBaseRoute() {
		return "/douyinMessage/";
	}

	/**
	* 当前模板名称
	* @return
	*/
	@Override
	public String getModelName(){
		return "抖音消息(评论管理、私聊管理)";
	}

	@Override
	public Class exportExcelClass() {
		return DouyinMessageDomainExport.class;
	}

	@Override
	public Set<String> totalMapSet() {
		Set totalMapSet=new HashSet();
		totalMapSet.add("count(douyin_message.dm_id) as countNum");

		return totalMapSet;
	}


}